home *** CD-ROM | disk | FTP | other *** search
- XBIOS / BIOS / GEMDOS TID BITS
-
-
- Most XBIOS, BIOS, and GEMDOS functions are already implemented in GFA Basic.
- However, there a few that are very usefull, but are not implemented in GFA.
-
- This is a short list of those functions and how to use them from GFA.
-
- Jim Luczak 02/28/87
-
- -----------------------------------------------------------------------------
-
- FUNCTION DESCRIPTION GFA BASIC LISTING
-
-
- GEMDOS (25) CURRENT DRIVE Curr_drv = Gemdos (25)
-
- The Currently Active Disk Drive Number is returned.
-
- 0 = A:
- 1 = B:
- 2 = C:
- 3 = D:
- Ect.
-
- ------------------------------------------------------------------------------
-
- BIOS (3) WRITE CHARACTER TO DEVICE Void Bios (3,5,Char)
-
- Characters with ASCII Codes between 32 & 255 can be displayed
- by the Chr$(Char) Command. Characters with Codes between
- 0 & 31 are Control Characters and will not be Displayed by
- the Chr$(char) Command.
- This BIOS Function will Display any ASCII Code between
- 0 & 255. Char is the ASCII Code to be Displayed.
-
- EXAMPLE: To Display ASCII Code 2 ( Down Arrow ) Enter
- Void Bios (3,5,2)
-
-
- BIOS (10) INQUIRE DRIVE STATUS Drv_stat = Bios (10)
-
- Returns a Number that indicates which Disk Drives are Active.
- Even if One Drive is Active, Two Logical Drives are Assumed.
- The Number that is returned, is a Bit Vector.
-
- EXAMPLE: The easiest way to see how this works, is to enter
- the following Example.
-
- Drv_stat = Bios (10)
- Print Bin$(Drv_stat)
- Print Drv_stat
-
- If Drive A: or B: or A: & B: are Active
- Bin$(Drv_stat) = 11
- Drv_stat = 3
- If Drives A:, B:, & C: are Active Bin$(Drv_sta) = 111
- Drv_stat = 7
- If Drives A:, B:, & D: are Active Bin$(Drv_stat) = 1011
- Drv_stat = 11
- If Drives A:, B:, & E: are Active Bin$(Drv_stat) = 10011
- Drv_stat = 19
- Ect.
- -------------------------------------------------------------------------------
-
-
-
- XBIOS (4) SCREEN RESOLUTION Rez = Xbios (4)
-
- Returns the Current Screen Resolution
-
- 0 = Low Resolution
- 1 = Medium Resolution
- 2 = High Resolution
-
-
- XBIOS (21) SET CURSOR CONFIGURATION Cur_conf = Xbios (21,Func,Rate)
-
- Sets the Cursor Configuration.
-
- Func = 0 = Disable Cursor
- 1 = Enable Cursor
- 2 = Flash Cursor
- 3 = Steady Cursor
- 4 = Set Cursor Flash Rate. (Only time Rate is required)
- 5 = Get Cursor Flash Rate. (Only time Cur_conf is
- required. Otherwise Void
- can be used)
-
- EXAMPLE: To Flash the Cursor enter.
-
- Void Xbios (21,2)
-
- To Set the Flash Rate to 10 enter
-
- Void Xbios (21,4,10)
-
- To Get the Flash Rate enter
-
- Cur_Conf = Xbios (21,5)
-
- ------------------------------------------------------------------------------
-